<?php

	header("Content-Type: text/html;charset=utf-8"); 

	include("../function/_nosql.php");

	include("../function/function.php");
	$classid = chkstr(trim($_REQUEST['classid']));
	//检测变量是否为数字或数字字符串
	if(!$classid)$classid=135;
	if(is_numeric($classid)){
		
	

		$sql="select * from kboy_bigclass where id=$classid";

		$rows=mysql_query($sql);

		$nums=mysql_num_rows($rows);

		if($nums>0){

			$rs=mysql_fetch_array($rows);

			$bigclass_cn = $rs['bigclass_cn'];

		}else{

			echo erro("该信息不存在或已被删除1");

		}

	}else{

		echo erro("参数错误");

	}
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title><?=$web_titles ?></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="Keywords" content="<?= $web_keywords ?>" />
		<meta name="Description" content="<?= $web_description ?>" />
		<link rel="stylesheet" type="text/css" href="css/index.css"/>
		<link rel="stylesheet" type="text/css" href="./css/swiper-3.3.1.min.css"/>
		<script type="text/javascript" src="../js/baidutongji.js"></script>
		<script src="./js/jquery-1.10.2.min.js" type="text/javascript" charset="utf-8"></script>
		
	</head>
	
	
	<body>
		<div id="wrap">
			<div class="header">
				<div class="header">
					<div class="h-logo"><img src="./image/logo.png"/></div> 
					<div class="h-panel">
						<p style="height: 30px;"></p>
						<img src="image/top_pic1.png"/>
						<img src="image/top_pic2.png"/>
					</div>
				</div>
				<nav>
					<a href="index.php">首页</a>
					<a href="huodong.php">活动</a>
					<a href="">资讯</a>
					<a href="shequ.php">社区</a> 
					<a href="">步道</a>
				</nav>
			</div>
		<div class="swiper-container" >
			<div class="swiper-wrapper">
				<div class="swiper-slide ni1" >
				<a href=""><img src="image/jd-zhangjiajie.jpg" /></a>
				</div>
				<div class="swiper-slide ni3">
					<a href=""><img src="image/jd-nanmei.jpg" /></a>
				</div>
			</div>
			<!-- 如果需要分页器 -->
			<div class="swiper-pagination"></div>
	
			<!-- 如果需要导航按钮 -->
			<div class="swiper-button-prev"></div>
			<div class="swiper-button-next"></div>
	
			<!-- 如果需要滚动条 -->
			<div class="swiper-scrollbar"></div>
		</div>
						<div id="clear"style="clear: both;"></div>
						<div class="hd-nav-wrap">
								常规活动
						</div>
						<div class="liebiao">
							<ul class="tupian1" style="display: block;">
							<?php

								$SQL = " where active_bigclass=135  and active_model = 0 and active_top = '' and active_state != 2 ";
								
								$pagesql = "select * from kboy_forum_active ".$SQL."order by active_state asc,active_center_time asc limit 3";
								$news_rows = mysql_query($pagesql);
								
								$i = 1;
								while($news_rs = mysql_fetch_array($news_rows)){
										
						?>
							<li>
								<a href="xiangqing.php?newsid=<?=$news_rs['id'];?>"><img src="../<?php 
                                        		$news_rss = explode(',',$news_rs['active_pic']);
												if($news_rss){
													echo $news_rss[0];
												}else{
													echo $news_rs['active_pic'];
												}
                                        	?>" width="150" height="100"/>
								<div class="zhuti">
									<p><?=$news_rs['active_title']?></p>
									<p>
									出发时间：<?php echo date('Y年m月d日',strtotime($news_rs['active_start_time'],time()));?>
									</p>
									<p>
									徒步距离：<?php echo $news_rs['active_all_line']=!empty($news_rs['active_all_line'])?$news_rs['active_all_line']:0;?>km
										
									</p>
								</div>
								</a>
							</li> 
							<?php

								}

						?>
							<p style="height: 30px; line-height: 30px;text-align: center;"><a href="./huodong.php?classid=135">更多》》</a></p>
						</ul>
						</div>
						<div class="hd-nav-wrap">
								大型活动
						</div>
						<div class="liebiao">
							<ul class="tupian1" style="display: block;">
							<?php

								$SQL = " where active_bigclass=136  and active_model = 0 and active_top = '' and active_state != 2 ";
								
								$pagesql = "select * from kboy_forum_active ".$SQL."order by active_state asc,active_center_time asc limit 3";
								$news_rows = mysql_query($pagesql);
								
								$i = 1;
								while($news_rs = mysql_fetch_array($news_rows)){
										
						?>
							<li>
								<a href="xiangqingDa.php?newsid=<?=$news_rs['id'];?>"><img src="../<?php 
                                        		$news_rss = explode(',',$news_rs['active_pic']);
												if($news_rss){
													echo $news_rss[0];
												}else{
													echo $news_rs['active_pic'];
												}
                                        	?>" width="150" height="100"/>
								<div class="zhuti">
									<p><?=$news_rs['active_title']?></p>
									<p>
									出发时间：<?php echo date('Y年m月d日',strtotime($news_rs['active_start_time'],time()));?>
									</p>
									<p>
									徒步距离：<?php echo $news_rs['active_all_line']=!empty($news_rs['active_all_line'])?$news_rs['active_all_line']:0;?>km
										
									</p>
								</div>
								</a>
							</li> 
							<?php

								}

						?>
							<p style="height: 30px; line-height: 30px;text-align: center;"><a href="./huodong.php?classid=136">更多》》</a></p>
						</ul>
						</div>
						<div class="hd-nav-wrap">
								企业定制
						</div>
						<div class="liebiao">
							<ul class="tupian1">
							<li>
								<form class="qiye" action="" method="post" style="font-size: 16px;">
									<div class="f_dz_box">
										<span>目的地</span>
										<input type="text" class="basic-input" value=""/>
									</div>
									<div class="f_dz_box">
										<span>热门主题</span>
										<input type="text" class="basic-input" value=""/>
									</div>
									<div class="f_dz_box">
										<span>出发日期</span>
										<input type="text" class="basic-input" value=""/>
									</div>
									<div class="f_dz_box">
										<span>人数</span>
										<input type="text" class="basic-input"  value=""/>
									</div>
									<div class="f_dz_box">
										<span>预算</span>
										<input type="text" class="basic-input" value=""/>
									</div>
									<div class="f_dz_box">
										<span>联系人</span>
										<input type="text" class="basic-input" value=""/>
									</div>
									<div class="f_dz_box">
										<span>联系电话</span>
										<input type="text" class="basic-input" value=""/>
									</div>
									<div class="f_dz_box">
										<span>其他需求</span>
										<textarea name="" rows="4" cols="28.5"></textarea>
									</div>
									<div style="text-align: center;"><input type="submit" id="tijiao" value="提交信息" /></div>
								</form>
							</li>
						</ul>
						</div>
			<!--<div class="footer">
				<div class="foot">返回<a href="index.php">徒步网</a> 2002-2016 chinawalking</div>
			</div>-->
		</div>
			<footer>
			        <nav class="navbar navbar-default navbar-fixed-bottom">
			            <div class="col-xs-12 btn-group" style="height: 50px;line-height: 50px;background-color: #EDF2F7 ;text-align: center;position: fixed ;width: 100%;bottom: 0;left: 0;">
			                <a href="index.php" style="width: 25%;font-size:16px;display: block;float: left;" class="col-xs-3 nopadding text-center bottomDiv">
			                	首页
			                </a> 
			
			                <a href="huodong.php" style="width: 25%;font-size:16px;display: block;float: left;" class="col-xs-3 nopadding text-center bottomDiv">
			               	活动
			                </a>
			
			                <a href="shequ.php" style="width: 25%;font-size:16px;display: block;float: left;" class="col-xs-3 nopadding text-center bottomDiv">
			             	 社区
			                </a>
			                
			                <a href="personal.php" style="width: 25%;font-size:16px;display: block;float: left;" class="col-xs-3 nopadding text-center bottomDiv">
			               	个人中心
			                </a>
			            </div>
			        </nav>
			    </footer>
		<script src="./js/swiper-3.3.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./js/swiper.animate1.0.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script>
		var mySwiper = new Swiper('.swiper-container', {
			autoplay: 5000,
            loop:true,
			
			    // 如果需要前进后退按钮
			    nextButton: '.swiper-button-next',
			    prevButton: '.swiper-button-prev',
			    
			onInit: function(swiper) { //Swiper2.x的初始化是onFirstInit
					swiperAnimateCache(swiper); //隐藏动画元素 
					swiperAnimate(swiper); //初始化完成开始动画
				},
				onSlideChangeEnd: function(swiper) {
					swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画
				}
			})
	</script>
	</body>
	<script type="text/javascript">
		var shu = $(".banner img").length;
		var c = 0;
		function run(){
			c++;
			if(c == shu){
				c = 0 ;
			}
			$(".banner img").eq(c).stop().show().siblings('img').stop().hide();
			//让c号li变红，其他的变灰
//			$(".thumb img").eq(c).css({'opacity':'1'}).siblings('img').css({'opacity':'0.3'});
		}
														
			timer = setInterval(run,2000);
			$(".left_1").mousedown(function(){
				clearInterval(timer);
			})
			$(".left_1").mouseup(function(){
			
				c--;
				if(c==-1){
					c=shu-1;
				}
				$(".banner img").eq(c).stop().show().siblings('img').stop().hide();
				timer = setInterval(run,2000);
			})
			$(".right_1").mousedown(function(){
				clearInterval(timer);
			})
			$(".right_1").mouseup(function(){
			
				c++;
				if(c==shu){
					c=0;
				}
				$(".banner img").eq(c).stop().show().siblings('img').stop().hide();
				timer = setInterval(run,2000);
			})
	</script>
	<script type="text/javascript">
		$(".hd-nav-wrap .xian").click(function(){
			$(this).css({"background":"#2260B4","color":"#fff"}).siblings(".xian").css({"background":"#fff","color":"#333"})
		var a =	$(this).index();
			$(".tupian1").eq(a).show().siblings(".tupian1").hide();
		})
	</script>
</html>
